/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.chenzehe.zdmya.service;

import com.chenzehe.java.core.orm.Page;
import com.chenzehe.java.core.orm.PageRequest;
import com.chenzehe.zdmya.domain.Collection;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-8-14 下午08:59:54
 */

public interface ICollectionService {
	void save(Collection collection);

	Page<Collection> queryByUserAndType(PageRequest pageRequest, int userId,
			int type);

	Collection queryByUserAndCollectionId(int userId, int coteneId, int type);

	Long queryCollectionNum(int userId);

	void deleteByIdAndUser(int id, int userId);
}
